package com.zhiyou100.mapper;

import com.zhiyou100.model.Course;
import com.zhiyou100.model.Speaker;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseMapper {
    List<Course> findAll();

    void add(@Param("course") Course course);

    void update(@Param("course") Course course);

    Course findById(@Param("id") Integer id);

    void delete(@Param("id") Integer id);

    List<Course> findBySubjectId(@Param("id") Integer id);
}
